package com.fastlib.demo;

import com.fastlib.adapter.BaseListAdapter;
import com.fastlib.base.OldViewHolder;
import com.fastlib.bean.Entity;
import com.fastlibrary.demo.R;

import android.widget.TextView;

public class BaseListAdapterDemo extends BaseListAdapter<New> {

	public BaseListAdapterDemo() {
		super(R.layout.item_new);
	}

	@Override
	public void convert(OldViewHolder holder, New item) {
		holder.setText(R.id.titile, item.getTitle());
		holder.setText(R.id.createtime, item.getCreateDate().toString());
		holder.setText(R.id.publisher, item.getPublisher());
		holder.setText(R.id.content, item.getContent());

	}

}
